#ifndef IAPFILE_H
#define IAPFILE_H

#include <QFile>

class IapFile
{
public:
    IapFile();
    void SetFile(const QString &path);
    QString GetFilename();
    bool Open();
    void Close();
    qint64 Size();
    qint64 Read(char * buf, qint64 len);
    qint64 Write(const QByteArray &data);
    void FromBegin();
private:
    QFile __file;
};

#endif // IAPFILE_H
